package com.okami.domain.onlineshop;

import com.okami.common.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.Set;

/**
 * @author: TanJingyu
 * @create: 2020-12-22 15:02
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table
@Accessors(chain = true)
public class Brand extends AbstractEntity<Long> {
    private String name;

    @OneToMany(mappedBy = "brand")
    private Set<Goods> goods;
//
//    @ManyToOne
//    private Categories categories;
}
